Usage
npm i @imedx/ics-imedx-core@0.0.1-beta.1
feature
0.0.1-beta.1 初始提供
Features
import IMedx from '@imedx/ics-imedx-core'
IMedx类
public static clientInfo: ClientInfo
public static userInfo: UserInfo
public static use({ request }: { request: any })
public static request: any
public static system: System
public static client: Client
public static IntfChsPlatform = IntfChsPlatform
System 系统类
public param: Param
Client 客户端操作类
public Report = Report
Param 参数类
public get(key: string, expirationTime: number): Promise<any>
public getTradeChannel(tradeType: string, expirationTime: number): Promise<any>
Report 参数类
public getPrinterName(name: string, expirationTime: number = 12 * 60 * 60): Promise<any>
public clearData(): Promise<any>
public registerData(name: string, data: Array<any>, field: object): Promise<any>
public doublePass(value: Boolean): Promise<any>
public load(fileName: string): Promise<any>
public loadFromId(reportId: string): Promise<any>
public ExportToPdf(fileName: string): Promise<any>
public exportToHtml(fileName: string): Promise<any>
public prepare(append?: Boolean): Promise<any>
public addParameter(name: string, value: string): Promise<any>
public design(): Promise<any>
public show(printerName?: string, showPrintSettings?: boolean, closeAfterPrint?:boolean): Promise<any>
public showPrepared(printerName?: string, showPrintSettings?: boolean, closeAfterPrint?:boolean): Promise<any>
public print(printerName?: string, showPrintSettings?: boolean): Promise<any>
public printPrepared(printerName?: string, showPrintSettings?: boolean): Promise<any>
public dispose(): Promise<any>